<form method="post" action="<?php echo $this->url_edit . @$edit->{$this->{$this->model}->primaryKey}; ?>"  enctype="multipart/form-data" class="form-horizontal">
<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Thông tin ':'Thêm mới ').@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		<div class="widget-content nopadding">
			
			<?php //echo $this->atheme->group_single_upload('userfile', 'Icon', '', ' span6', @$cate->cat_icon, 'text', '80px','80px'); ?>
			
				<?php echo $this->atheme->group_input2('edit[cat_name]', 'Tên danh mục', '', 'span6 ', @$edit->cat_name, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[cat_code]', 'Mã code seo', '', 'span6 ', @$edit->cat_code, 'text', ''); ?>
				
				<?php echo $this->atheme->group_select2('edit[cat_parent]','Danh mục cha','','', $cate_tree,@$edit->cat_parent); ?>
				<?php echo $this->atheme->group_input2('edit[cat_order]', 'Sắp xếp', '', 'span6 ', @$edit->cat_order, 'text', ''); ?>
				
				<?php echo $this->atheme->group_textarea2('edit[cat_description]', 'Chú thích', '', 'span6 ', @$edit->cat_description,  ''); ?>
				
				<?php echo $this->atheme->group_select2('edit[cat_status]','Trạng thái','','', array('1'=>'Sử dụng','0'=>'Ẩn'),@$edit->cat_status); ?>
				
				
				<?php if(@$edit->{$this->{$this->model}->primaryKey} > 0){ ?>
					<?php echo $this->atheme->group_text2( 'Ngày tạo: ', date("d/m/Y H:i:s",@$edit->cat_time_create)); ?>	

					<?php echo $this->atheme->group_text2( 'Ngày cập nhật: ', date("d/m/Y H:i:s",@$edit->cat_time_update)); ?>	
				<?php } ?>
				
				
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
			
		</div>
	</div>						
</div>
</div>


<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo 'SEO '.@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		<div class="widget-content nopadding">
			
			<?php //echo $this->atheme->group_single_upload('userfile', 'Ảnh đại diện', '', ' span6', @$cate->CAT_THUMB, 'text', '80px','80px'); ?>
			
				<?php echo $this->atheme->group_input2('edit[seo_h1]', 'SEO H1', '', 'span6 ', @$edit->seo_h1, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[seo_description]', 'SEO DESCRIPTION', '', 'span6 ', @$edit->seo_description, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[seo_title]', 'SEO TITLE', '', 'span6 ', @$edit->seo_title, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[seo_keyword]', 'SEO KEYWORD', '', 'span6 ', @$edit->seo_keyword, 'text', ''); ?>
				
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
			
		</div>
	</div>						
</div>
</div>

</form>